package com.zsrt.bbu.bank.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zsrt.bbu.bank.service.BankService;


@RequestMapping("/bank")
@Controller
public class BankController{
	
	
	
	@Autowired
	private BankService service;
	
	/**
	 * http://localhost:9999/scott-ssm-bbu/bank/findById?id=10
	 * @param id
	 * @return
	 */
	@ResponseBody
	@RequestMapping("/findById")
	public Map<String, Object> findById(int id){
		Map<String, Object> mp = new HashMap<>();
		service.findById(id, mp);
		return mp;
	}

}
